﻿
    using Maticsoft.BLL;
    using Maticsoft.Model;
    using System;
    using Utils;

    public partial class Team : FBasePage
    {
        protected string output = string.Empty;

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            int @int = Helper.GetInt(base.Request["id"], 0);
            if (@int > 0)
            {
                Maticsoft.Model.Team model = new Maticsoft.BLL.Team().GetModel(@int);
                if (model != null)
                {
                    if (model.Team_type == "normal")
                    {
                        this.output = WebSiteHelper.LoadPageString("~/UserControls/team_view.aspx?id=" + model.Id);
                    }
                    else if (model.Team_type == "seconds")
                    {
                        this.output = WebSiteHelper.LoadPageString("~/UserControls/team_view_seconds.aspx?id=" + model.Id);
                    }
                    else
                    {
                        this.output = WebSiteHelper.LoadPageString("~/UserControls/team_view_goods.aspx?id=" + model.Id);
                    }
                }
            }
        }
    }


